PCITest.c is a simple test for PCI configuration space compliance testing. It writes and reads various config space registers and checks them for expected values according to the current PCI specification. There are a few routines that are hardware dependent and those must be supplied by the user. To use the test, simply add in the hardware specific code, compile it on your target machine, and run it as an application.
This is a first pass of the test suite.
The following external routines are localized hardware dependent abstraction layers that provide access to physical or simulated hardware
extern UInt8 GetPresentsBits(); /* Returns the two presents bits in bits 0 and 1 of byte */
/* Access to PCI configuration space is hardware dependent */